import pandas as pd

# 模拟数据
data = {
    "品牌": ["Apple", "Samsung", "Xiaomi", "Huawei", "OPPO"],
    "型号": ["iPhone 15", "Galaxy S24", "14 Pro", "Mate 60 Pro", "Find X7"],
    "价格": [5999, 4999, 3999, 6999, 3499],
    "库存": [100, 80, 150, 50, 200],
    "上市时间": ["2023-09-22", "2024-01-18", "2023-12-28", "2023-08-29", "2024-03-10"],
    "描述": ["智能手机", "安卓旗舰手机", "高性能性价比手机", "5G折叠屏手机", "影像旗舰手机"]
}

# 创建 DataFrame 并保存为 Excel
df = pd.DataFrame(data)
df.to_excel("products.xlsx", index=False)
print("Excel 文件已生成：products.xlsx")